<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:hidden  name="reaprobaciones.externalEc" id="altexternalEc" value="%{reaprobaciones.externalEc}"/>
<s:textfield label="External EC" id="externalEc" cssClass="datepicker"/>

<s:hidden  name="reaprobaciones.localEc" id="altlocalEc" value="%{reaprobaciones.localEc}"/>
<s:textfield label="Local EC" id="localEc" cssClass="datepicker"/>

<s:hidden  name="reaprobaciones.teachingCommittee" id="altteachingCommittee" value="%{reaprobaciones.teachingCommittee}"/>
<s:textfield label="Teaching Committee" id="teachingCommittee" cssClass="datepicker"/>

<s:select label="Scope" name="reaprobaciones.scope" id="scope"  value="%{reaprobaciones.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="reaprobacionesSave" action="reaprobacionesSave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>

<s:if test="reaprobaciones.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="reaprobacionesClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="reaprobaciones.id" value="%{reaprobaciones.id}"/>
<script>
    inicializarTodaFecha();
</script>
<s:if test="reaprobaciones.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>